package com.study.think.node_08.Study_02;

/**
 * Created by zc on 2017/3/9.
 */
public class Shapes {

    private static RandomShapeGenerator generator = new RandomShapeGenerator();

    public static void main(String[] args) {
        Shape[] s = new Shape[9];
        for (int i = 0; i < s.length; i++) {
            s[i] = generator.next();
        }
        for (Shape shp : s) {
            shp.draw();
        }
    }

}
